

<p>Please fill out the following form with your login credentials:</p>

<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'login-form',
        'enableClientValidation' => true,
        'htmlOptions' => array('class' => 'well'),
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
            ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>
    <div class="row">
        Username:
<?php echo $form->textField($model, 'username', array('class' => 'span3')); ?>
    </div>
    <div class="row">
        Password:
<?php echo $form->passwordField($model, 'password', array('class' => 'span3')); ?>
    </div>

    <div class="form-actions">
<?php echo CHtml::submitButton('Login', array('class' => 'loginbtn', 'id' => 'login')); ?> 

    </div>

<?php $this->endWidget(); ?>
</div>
